package com.example.easypoi.util;

import org.jeecgframework.poi.cache.WordCache;
import org.jeecgframework.poi.word.entity.MyXWPFDocument;
import org.springframework.stereotype.Component;

@Component
public class WordTemplateUtil {

    public MyXWPFDocument loadTemplate(String path) throws Exception {
        return WordCache.getXWPFDocumen(path);
    }
}